<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/15
 * Time: 11:18
 */

namespace Bpm\Controllers;


use Helpers\Controller;
use Helpers\Main;

class BpmNewBase extends Controller
{


    public function beforeExecuteRoute($dispatcher)
    {
        if (in_array(strtolower($this->dispatcher->getActionName()),[
            'getplan',
            'transform'
        ] )){
            return true;
        }

        $userId = Main::getLoginUserInfo('userId');
        if (!$userId) {
            Main::goLoginPage();
        }
    }
}